

import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class FamilleTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class FamilleTest
{
    private Famille famille1;
    private Maison maison;

    /**
     * Default constructor for test class FamilleTest
     */
    public FamilleTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        famille1 = new Famille();
        famille1.setMaman("Julie");
        famille1.setPapa("Marc");
        maison = new Maison();
        maison.majPrix(1000000.0);
        maison.getAdresse();
        maison.modificationAdresse("10 rue de la paix");
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void testSetPapa()
    {
        Famille Johnson = new Famille();
        Johnson.setPapa("Marc");
        assertEquals("Marc", Johnson.getPapa());
    }

    @Test
    public void testSetMaman()
    {
        Famille Johnson = new Famille();
        Johnson.setMaman("Julie");
        assertEquals("Julie", Johnson.getMaman());
    }


    @Test
    public void test3()
    {
        maison.signatureActeVente(famille1);
    }
}






